gen     C40RACE =  .
replace C40RACE =  1 if inlist(C40RACERAW,"White","Italian","Greek","Spanish","Portuguese","Polish","Jewish","Russian","Caucasian")
replace C40RACE =  1 if inlist(C40RACERAW,"English","Serbian","French","German","Irish","Hebrew","Jew","Hungarian","Jugoslavian")
replace C40RACE =  1 if inlist(C40RACERAW,"Latin","Lithuanian","American","Austrian","Spain","Swiss","Albanian","Bulgarian")
replace C40RACE =  1 if inlist(C40RACERAW,"Croatian","Dutch","Slovakian","Danish","Slovak","Sweden")


replace C40RACE =  2 if inlist(C40RACERAW,"Negro","Colored","Black","C","N")
replace C40RACE =  3 if inlist(C40RACERAW,"Indian","American Indian")

replace C40RACE =  4 if inlist(C40RACERAW,"Chinese")
replace C40RACE =  5 if inlist(C40RACERAW,"Japanese","Japan")

replace C40RACE =  6 if inlist(C40RACERAW,"Filipino","Hindu","Korean","Phillipino")
replace C40RACE =  6 if inlist(C40RACERAW,"Hawaiian","Polynesian","Siamese","Malay","Hin","Kor")


replace C40RACE =  7 if inlist(C40RACERAW,"Mulatto","Syrian","Turkish","Yaqui","Armenian","Chamorro","Quadroon","Aleut","Eskimo")
replace C40RACE =  7 if inlist(C40RACERAW,"Arabic","Persian","Mixed","Cajun","S","Gypsy","West Indian")
replace C40RACE =  7 if inlist(C40RACERAW,"Assyrian","Brown","Arabian","East Indian","Labonese","R")

replace C40RACE = 10 if inlist(C40RACERAW,"Mexican","Puerto Rican","Cuban","Chilean","Haitian","Nicaraguan")

capture {
	label define race_lbl  1 `"White"'
	label define race_lbl  2 `"Black/Negro"', add
	label define race_lbl  3 `"American Indian or Alaska Native"', add
	label define race_lbl  4 `"Chinese"', add
	label define race_lbl  5 `"Japanese"', add
	label define race_lbl  6 `"Other Asian or Pacific Islander"', add
	label define race_lbl  7 `"Other race, nec"', add
	label define race_lbl  8 `"Two major races"', add
	label define race_lbl  9 `"Three or more major races"', add
	label define race_lbl 10 `"Mexican or Latino"', add
} /* capture */
label values C40RACE race_lbl
